package by.bsu.touragency.db.beans;

import java.util.GregorianCalendar;

public class Tour {

	private int id;
	private Transfer transfer;
	private int price;
	private Hotel hotel;
	private Transport transport;
	private GregorianCalendar dateTo;
	private GregorianCalendar dateFrom;
	private int quantity;

	public Tour() {
		super();
	}

	public Tour(Transfer transfer, int price, Hotel hotel, Transport transport,
			GregorianCalendar dateTo, GregorianCalendar dateFrom, int quantity) {
		super();
		this.transfer = transfer;
		this.price = price;
		this.hotel = hotel;
		this.transport = transport;
		this.dateTo = dateTo;
		this.dateFrom = dateFrom;
		this.quantity = quantity;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Transfer getTransfer() {
		return transfer;
	}

	public void setTransfer(Transfer transfer) {
		this.transfer = transfer;
	}

	public int getPrice() {
		return price;
	}

	public boolean setPrice(int price) {
		if (price > 0) {
			this.price = price;
			return true;
		} else
			return false;
	}

	public Hotel getHotel() {
		return hotel;
	}

	public void setHotel(Hotel hotel) {
		this.hotel = hotel;
	}

	public Transport getTransport() {
		return transport;
	}

	public void setTransport(Transport transport) {
		this.transport = transport;
	}

	public GregorianCalendar getDateTo() {
		return dateTo;
	}

	public void setDateTo(GregorianCalendar dateTo) {
		this.dateTo = dateTo;
	}

	public GregorianCalendar getDateFrom() {
		return dateFrom;
	}

	public void setDateFrom(GregorianCalendar dateFrom) {
		this.dateFrom = dateFrom;
	}

	public int getQuantity() {
		return quantity;
	}

	public boolean setQuantity(int quantity) {
		if (quantity > 0) {
			this.quantity = quantity;
			return true;
		} else
			return false;

	}

}
